﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZX.OA.Model;
using ZX.OA.DAL;

namespace ZX.OA.BLL
{

    public class StationeryInfoBll
    {
        StationeryInfoDal dal = new StationeryInfoDal();

        /// <summary>
        /// 办公用品的申领记录
        /// </summary>
        /// <returns></returns>
        public List<StationeryInfo> GetStationery()
        {
            return dal.GetStationery();
        }
        /// <summary>
        /// 添加工作任务
        /// </summary>
        /// <param name="t"></param>
        /// <returns></returns>
        public int StationeryInfoAdd(StationeryInfo t)
        {
            return dal.StationeryInfoAdd(t);
        }
        /// <summary>
        /// 办公用品的删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int DeleStationery(int id)
        {
            return dal.DeleStationery(id);
        }
        /// <summary>
        /// 根据办公用品编号获取办公用品信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public StationeryInfo GetStationeryId(int id)
        {
            return dal.GetStationeryId(id);
        }
        /// <summary>
        /// 修改办公用品信息
        /// </summary>
        /// <param name="s"></param>
        /// <returns></returns>
        public int StationeryUpdate(StationeryInfo s)
        {
            return dal.StationeryUpdate(s);
        }
    }
}